<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org" lang="zh-CN">
<head>
    <meta charset="utf-8"/>
    <title>CMS后台管理系统</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    <link th:replace="resource :: css" rel="stylesheet"/>
</head>
<body>
<div class="container-fluid">
    <nav class="navbar navbar-default" role="navigation">
        <div class="container-fluid">
            <div class="navbar-header">
                <a class="navbar-brand" href="javascript:void(0);">用户组管理</a>
            </div>
        </div>
    </nav>
    <table class="table table-bordered table-hover">
        <thead>
        <tr>
            <th colspan="10"></th>
            <th><a type="button" class="btn btn-success btn-sm" href="add">新增</a></th>
        </tr>
        <tr>
            <th>ID</th>
            <th>组名</th>
            <th>栏目管理</th>
            <th>文章管理</th>
            <th>评论管理</th>
            <th>用户组管理</th>
            <th>用户管理</th>
            <th>配置管理</th>
            <th>日志管理</th>
            <th>状态</th>
            <th width="93px">操作</th>
        </tr>
        </thead>
        <tbody>
        <tr th:each="entity : ${page.content}">
            <td th:text="${entity.id}"></td>
            <td th:text="${entity.name}"></td>
            <td th:text="${entity.manageChannel}? '&#10003;': '&#10005;'"></td>
            <td th:text="${entity.manageArticle}? '&#10003;': '&#10005;'"></td>
            <td th:text="${entity.manageComment}? '&#10003;': '&#10005;'"></td>
            <td th:text="${entity.manageGroup}? '&#10003;': '&#10005;'"></td>
            <td th:text="${entity.manageUser}? '&#10003;': '&#10005;'"></td>
            <td th:text="${entity.manageConfig}? '&#10003;': '&#10005;'"></td>
            <td th:text="${entity.manageLog}? '&#10003;': '&#10005;'"></td>
            <td th:text="${entity.enable}? '&#10004;': '&#10006;'"></td>
            <td>
                <a class="btn btn-success btn-xs" data-id="$!entity.id" href="edit?id=$!entity.id">编辑</a>
                <button type="button" class="btn btn-danger btn-xs remove-item" data-id="$!entity.id">删除</button>
            </td>
        </tr>
        </tbody>
    </table>
    #set($i=$!page.number + 1)
    <ul class="pagination" style="float:right" total="$!page.totalPages" index="$i"></ul>
</div>
<script th:replace="resource :: js"></script>
</body>
</html>